package com.ruoyi.project.pay.weixin.modal;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Filename: WxJsApiModal.java <br>
 * <p>
 * Description: 微信小程序支付实体参数<br>
 *
 * @author: rongrong <br>
 * @version: 1.0 <br>
 * @Createtime: 2019-12-02 <br>
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ---------------------------------------------------------*
 * 2019-12-07       rongrong            v1.0              第一次创建
 * @Copyright: Copyright (c)2019 by rongrong <br>
 */
@Data
@ToString
@Component
public class WxAppletModal {

    /**
     * 小程序appid
     */
    @Value("${wx-pay.applet-param.appid}")
    private String appid;
    /**
     * 应用appSecret
     */
    @Value("${wx-pay.applet-param.secret}")
    private String secret;
    /**
     * 商户号
     */
    @Value("${wx-pay.applet-param.mch_id}")
    private String mch_id;
    /**
     * 商户key
     */
    @Value("${wx-pay.applet-param.security}")
    private String security;
    /**
     * 公众号支付回调地址
     */
    @Value("${wx-pay.applet-param.notify_url}")
    private String notify_url;
    /**
     * 商品描述
     */
    private String body;
    /**
     * 订单号
     */
    private String out_trade_no;
    /**
     * 订单金额 单位(元)
     */
    private String total_fee;
    /**
     * 微信用户openid
     */
    private String openid;
    /**
     * 附加数据
     */
    private String attach = "";

}
